Dear friends,

When loading the FCKeditor, I'm given these messages, one after the other.

The FCKConfig.CoreStyles['blockquote'] setting was not found. Please check the fckconfig.js file

The FCKConfig.CoreStyles['code'] setting was not found. Please check the fckconfig.js file

The FCKConfig.CoreStyles['dt'] setting was not found. Please check the fckconfig.js file

The FCKConfig.CoreStyles['dd'] setting was not found. Please check the fckconfig.js file

After the last one, the editor renders OK but without these buttons.

Using FCKeditor 2.6.4.

Many blessings.

Comments

sun’s picture

Status: Active » Postponed (maintainer needs more info)

I am not able to replicate this issue.

a) Did you also test with earlier versions? 2.6.2

b) If Wysiwyg API does not work as expected, please

1) Remove all buttons/plugins from your Wysiwyg profile except bold+italic buttons
2) Test whether the editor appears
3) If not, temporarily disable (all) other contrib modules
4) Test again
5) If the editor appears, re-enable other contrib modules step-by-step to see who's guilty.

oh. And just now I see that you need to upgrade to the latest release.

sun’s picture

Status: Postponed (maintainer needs more info) » Closed (won't fix)

Sorry, without further information this issue can only be marked as won't fix.

Feel free to re-open this issue if you want to provide further information. Thanks.

zoo’s picture

Hello,

I just experienced exactly the same problem as described by DawnLight.

  1. I have set up a fresh 6.13 Drupal installation today, with "Wysiwyg" module along with "FCKeditor 2.6.4.1"
  2. In admin>settings>wysiwyg, I have assigned FCKeditor to a default input format and then activated all the checks in Wysiwyg module "Buttons and Plugins" configs section (admin>settings>wysiwyg>profile>...>edit)
  3. Opened Chrome (I'm using FF to set Drupal configurations) and logged with the role appropriated to see if FCKeditor loads fine, but just before the editor were appeared, the alert messages "popped-up" (they are the same as DawnLight cites: blockquote, code, dt, dd).

So I have tried to paste these lines, as suggested here, without luck and alerts messages are still there:

FCKConfig.CustomStyles = 
{
'Blockquote' : { Element : 'blockquote', Styles : { 'text-indent' : '40px' } },
'Code' : {Element :'code', Styles : {'font-family' : '"Courier New", Courier, monospace' } }
'Definition Description' : {Element :'dd', Styles : {'padding-left' : '1em' } }
'Definition Term' : {Element :'dt', Styles : {'padding-left' : '0em', 'font-weight' : 'bold' } }
};

Thank you

zoo

El Bandito’s picture

Title: FCKeditor can't find settings for some buttons » Same again

Hi

Durpal 6.13, WYSIWYG 6.x-2.0, FCKEditor 2.6.4.1. If the relevant buttons are enabled OR the CSS Block Formats for the input filter include either blockquote, code, dd or dt as the editor initialises I see a series of popup error messages of the form :

"The FCKConfig.CoreStyles['blockquote'] setting was not found. Please check the fckconfig.js file"

and when initialised the Format selection box of the editor only lists the other block formats ( i.e. H1, P etc. ).

Happy to help with diagnosis if I can.

Cheers

Dave

El Bandito’s picture

In fckconfig.js I find the following at line 208 :

// Do not add, rename or remove styles here. Only apply definition changes.
FCKConfig.CoreStyles =
{
	// Basic Inline Styles.
	'Bold'			: { Element : 'strong', Overrides : 'b' },
	'Italic'		: { Element : 'em', Overrides : 'i' },
	'Underline'		: { Element : 'u' },
	'StrikeThrough'	: { Element : 'strike' },
	'Subscript'		: { Element : 'sub' },
	'Superscript'	: { Element : 'sup' },

	// Basic Block Styles (Font Format Combo).
	'p'			: { Element : 'p' },
	'div'			: { Element : 'div' },
	'pre'			: { Element : 'pre' },
	'address'		: { Element : 'address' },
	'h1'			: { Element : 'h1' },
	'h2'			: { Element : 'h2' },
	'h3'			: { Element : 'h3' },
	'h4'			: { Element : 'h4' },
	'h5'			: { Element : 'h5' },
	'h6'			: { Element : 'h6' },

so I clearly ignored the instruction NOT to add core styles and tried adding the missing elements to the Basic Block Styles. Sadly to no effect - the errors persist.

Cheers

Dave

lukus’s picture

Hi - I have the same error..

It occurred when I added blockquote to list of permitted block styles in the WYSIWYG editor settings for Fckeditor.
I'm also using version 2.6.4.
After looking at the file referenced (fckconfig.js) which is found in my libraries directory for my FCKeditor install, I couldn't find the recommended option listed.

Any advice appreciated,

Cheers

Luke

sun’s picture

Title: Same again » FCKeditor can't find settings for some buttons
lukus’s picture

Hi

I might be wrong here, but from looking at a page load in firebug, it looks like fckconfig.js isn't being loaded?

This might also explain why I'm finding it difficult to customise the editor's skin - so far any changes I've made to the file don't seem to be having any effect.

Cheers

Luke

EDIT: I was wrong .. it is being loaded

Sborsody’s picture

Status: Closed (won't fix) » Needs work

I'm running 2.6.5. The problem I think is that code, dd, and dt are not supported by the editor. (See http://cksource.com/forums/viewtopic.php?f=6&t=726&p=25659)

The confusion I think stems from the fact that code, dd, and dt are listed as examples for block formats under admin/settings/wysiwyg/profile/[id]/edit. If anything, that's what needs to get fixed.

wysiwyg.admin.inc: '#description' => t('Comma separated list of HTML block formats. Possible values: <code>@format-list</code>.', array('@format-list' => 'p,h1,h2,h3,h4,h5,h6,div,blockquote,address,pre,code,dt,dd')),

Edit: Could try http://sourceforge.net/tracker/index.php?func=detail&aid=2836187&group_i...

ti2m’s picture

I need the code tag in block formats, so as in #6 I added

'code'			: { Element : 'code' },

in line 209 AND added 'code' to line 157

FCKConfig.FontFormats	= 'p;h1;h2;h3;h4;h5;h6;pre;address;div;code' ;

it works but it shows up as '_FCK_code'. Tried to edit the translation files, but it doesn't take...

ti2m’s picture

yeah, ok, to make the translation work you got to edit

fckeditorcode_gecko.js
fckeditorcode_ie.js
lang/en.js + your language file
editor/js/fckeditorcode_ie.js

it then works but that is really nasty... don't know if there is another way to do it, but if not then I agree with Sborsody to change the example code

capricorn’s picture

Title: FCKeditor can't find settings for some buttons » FCKeditor can't find settings for FCKConfig.CoreStyles['img']
Category: bug » support
Priority: Normal » Critical
Status: Needs work » Active

I keep getting this error - FCKConfig.CoreStyles['img'] setting was not found. Please check the fckconfig.js file and not sure why I am getting I have checking the fckconfig.js file but nothing seems to help.

twod’s picture

Status: Active » Postponed (maintainer needs more info)

Can you copy or take a screenshot of Firebug's DOM tab (or similar tool) to show what's in Drupal.settings.wysiwyg.configs.fckeditor?

Which version of FCKeditor are you using?
Which plugins have you enabled?
Does this happen in more than one browser? (Which ones)

batsonjay’s picture

Same error, with blockquote & cite.

Specifics:
- Running wysiwyg 6.x-2.0 (release, not dev snapshot)
- fckeditor 2.6.5
- Acquia Drupal 1.2.19 (Drupal 6.14 core)
- Enabled blockquote in buttons, and in CSS (in wysiwyg module)
- Error message on loading text area:

The FCKConfig.CoreStyles['blockquote'] setting was not found. Please check the fckconfig.js file

Tried to use Firefox/Firebug to get the DOM tab info, but when I selected the iFrame for the editor, I saw no Drupal.* namespace to drill into.

Have enabled no other plugins; have only tried FF as browser.

twod’s picture

Title: FCKeditor can't find settings for FCKConfig.CoreStyles['img'] » FCKeditor broken block formats setting
Priority: Critical » Normal
Status: Postponed (maintainer needs more info) » Closed (duplicate)

@batsonjay The Wysiwyg settings are in the Drupal.* namespace of the main document.

I've been digging into this lately and figured out why it doesn't work as expected. The docs on FontFormat - the setting actually affected by the Block formats list - says one should simply be able to remove tags from or add new to the list. Officially, FCKeditor only supports p, pre, address, h1-6 and div, which are also the default ones.

The Wysiwyg GUI says one can enter more tags, like blockquote, dd, dt as that's what TinyMCE.module supported (from which Wysiwyg is derived). Doing so however will make the editor look for the definitions of the corresponding styles in FCKConfig.CoreStyles. Since there are none, we get the errors mentioned earlier. Simply adding the extra tag definitions to CoreStyles will do us no good, the editor still doesn't have a human readable name for it. Even if we edited the translation file(s) and put our new tag in there, it would still not be good enough because the editor is actually hardcoded to only look for the default ones! This can be confirmed by looking through fcktoolbarfontformatcombo.js (uncompressed source file).

As mentioned in #313497: Allow configuration of advanced editor settings, most of the current GUI should be in the TinyMCE implementation, and we need to build that form almost from scratch for each editor. In its current state, there is no way I can get it to play nice with FCKeditor. I did see some old forum post about FontFormats working differently in some older versions of FCKeditor but I haven't confirmed that.

As a conclusion, it was probably bad idea to hook the Block formats setting into FontFormats in the first place since it doesn't deliver what's promised. I'm terribly sorry for the GUI being so misleading. The description for the Block formats list need to change in the case of FCKeditor to exclude the tags it can't handle. I'm marking this a duplicate of #313497: Allow configuration of advanced editor settings, while not technically true since this one is purely GUI related, that issue needs to be fixed for us to be able to properly customize the profile page for any editor at all.

In the mean time, if you really need to change this setting, please have a look at http://community.contractwebdevelopment.com/changing-fckeditor-font-form... (requires multiple files to be modified).
Note that the list in Block formats will override the settings in fckconfig.js if set, so use that instead of editing FontFormats in fckconfig.js if the change doesn't seem to have an effect.

Btw, the error where the tag name is 'img' is unrelated to the others. The 'img' tag was probably added to the Block formats list, which is not allowed in the first place.

twod’s picture

Closer to what I actually meant.
Suddenly had to bump the version as the old one went missing...

sun’s picture

Title: FCKeditor broken block formats setting » FCKeditor has a misleading Block formats description
Version: 6.x-1.1 » 7.x-2.x-dev

Last follow-ups make me believe even more that TwoD must be an angel from heaven.